import request from '@/utils/request'

export function upload(file) {
    return request({
        url: '/static/resource/upload',
        method: 'post',
        data: file,
        headers: {
            'Content-Type': 'multipart/form-data'
        }
    })
}

export function del(file) {
    return request({
        url: '/static/resource/delete',
        method: 'delete',
        params: {
            file: file
        },
    })
}